#pragma once
#include "ICommand.h"

/* Class Name: DeleteCommand
 *
 * This class handles the delete operation of TaskLine. It deletes a task from the storage class
 * 
 * @author A0096955J
 *
 */

class DeleteCommand : public ICommand {
public:
	// constructor/destructor
	DeleteCommand(string);
	~DeleteCommand(void);

	string Execute();
	string Unexecute();

private:
	FloatingTask* previousTask;
	int index;
	Storage *storage;
	string restOfCommand;

	// internal methods not accessible to user
	void parser(string);
};

